package com.wltjack.springboot.common;

/**
 * 返回状态码常量定义
 */
public class ResponseCode {
	
	/**
	 * 返回正常
	 * */
	public static final String DATA_SUCCESS = "success";
	public static final int DATA_CODE_OK = 0;

	/**
	 * 错误
	 */
	public static final String DATA_ERROR = "error";
	
	public static final String DATA_SERVER_ERROR = "{\"code\":50000,\"msg\":\"system error\"}";
	/**
	 * 校验码错误错误
	 * */
	public static final String PAGE_CODE_ERROR = "{\"code\":300, \"msg\" : \"分页信息错误\"}";
	
	/**
	 * 服务器内部错误
	 * */
	public static final String SERVER_ERROR = "{\"code\":500, \"msg\" : \"server error\"}";
	
	/**
	 * 返回正常
	 * */
	public static final String DATA_OK = "{\"code\":0, \"msg\" : \"成功\"}";
	
	/**
	 * 参数错误
	 * */
	public static final String PARAM_URL_ERROR = "{\"code\":4041, \"msg\" : \"request error\"}";
	
	/**
	 * 权限错误
	 * */
	public static final String AUTHORITY_ERROR = "{\"code\":4031, \"msg\" : \"authority or param error\"}";
	
	
	/**
	 * 未登录
	 * */
	public static final String LOGIN_ERROR = "{\"code\":998, \"msg\" : \"login error\"}";

	/**
	 * 注册失败
	 * */
	public static final String REDISTER_ERROR = "{\"code\":997, \"msg\" : \"register error\"}";
	
	/**
	 * 校验码错误错误
	 * */
	public static final String VERIFICATION_CODE_ERROR = "{\"code\":600, \"msg\" : \"校验码错误\"}";
	
}
